﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using FreeSql.DataAnnotations;

namespace Wen.Models.Entity;

public interface IEntityBaseTreeId
{
    /// <summary>
    /// 雪花Id
    /// </summary>
    [Key]
    public long Id { get; set; }

    /// <summary>
    /// 雪花Id
    /// </summary>
    [DisplayName("父层ID")]
    public long ParentId { get; set; }

    [Navigate(nameof(ParentId))]
    public List<IEntityBaseTreeId> Childs { get; set; }
}
